import request from './request'

// 获取房间列表
export const getRooms = (params) => {
  return request.get('/rooms', { params })
}

// 获取房间详情
export const getRoom = (id) => {
  return request.get(`/rooms/${id}`)
}

// 创建房间
export const createRoom = (data) => {
  return request.post('/rooms', data)
}

// 更新房间
export const updateRoom = (id, data) => {
  return request.put(`/rooms/${id}`, data)
}

// 删除房间
export const deleteRoom = (id) => {
  return request.delete(`/rooms/${id}`)
}

// 获取房间类型
export const getRoomTypes = () => {
  return request.get('/room-types')
}

// 获取房间状态
export const getRoomStatuses = () => {
  return request.get('/room-statuses')
}
